package com.lh.common.enums;


import com.baomidou.mybatisplus.core.enums.IEnum;
import com.lh.common.entity.state.STATE;

/**
 * @author Gze
 * @ClassName:
 * @Description: (类作用)
 * @date: 2020-05-11 09:50
 */
public enum OrderStatusEnum implements IEnum<String> {

    TOPAY(STATE.ST1),//订单状态  1:待付款
    INPAY(STATE.ST2),//2:支付中
    TOSHIP(STATE.ST3),// 3:待发货
    OUTSTOCK(STATE.ST4),// 4已出库
    SHIPED(STATE.ST5),// 5已发货
    COMPLETED(STATE.ST6),// 6已完成
    CANCELLED(STATE.ST7),//  7已取消
    ACTIVITYLOSE(STATE.ST8),//待退款
    REFUNDING(STATE.ST9),//退款中
    REFUNDED(STATE.ST10),//完成退款
    PAYOVERTIME(STATE.ST11),//支付超时已取消
    PAYCANCEL(STATE.ST12);//支付失败已取消

    // 定义私有变量
    private String status;

    OrderStatusEnum(String status) {
        this.status = status;
    }

    @Override
    public String getValue() {
        return status;
    }
}
